package com.qf.smsplatform.webmaster.mapper;


import com.qf.smsplatform.webmaster.pojo.TSmsTemplate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface SmsTempMapper {

    @Insert("INSERT INTO t_sms_template (template,paramter,owntype,creater,status) VALUES(#{template},#{paramter},#{owntype},#{creater},#{status})")
    int addTemp(TSmsTemplate tSmsTemplate);

    @Select("SELECT * FROM t_sms_template")
    List<TSmsTemplate> findAll();

    @Select("select * from t_sms_template where id=#{id}")
    TSmsTemplate selectById(Long id);

    int update(TSmsTemplate template);

    int Admindelete(List<Integer> ids);

    int deletes(List<Integer> ids);

    List<TSmsTemplate> findByMultiParam(TSmsTemplate tSmsTemplate);

}
